/*
 * TestEmployee.java
 *
 * This class contains the main method, where the objects are created.
 *
 * 
 */

package com.javacore.day6.maxsoft1;

/**
 * TestEmployee class to create objects and call the methods.
 * @author 
 */
public class TestEmployee {
    
    /** Creates a new instance of TestEmployee */
    public TestEmployee() {
    }
    
    /**
     * This is the entry point of the application.
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        // Create an instance of salaried employee, John
        Employee objJohn = new SalaryEmployee("John", 2300.50);
        
        // Display the details of John
        objJohn.displayDetails();
        
        // Create an instance of waged employee, David
        Employee objDavid = new WageEmployee("David", 34.50, 10);
        
        // Display the details of David
        objDavid.displayDetails();
    }
}
